import Vue from 'vue'
import VueRouter from 'vue-router'

import { routes } from './routes'

Vue.use(VueRouter);


let router = new VueRouter({
    mode: 'history',
    routes
});
router.beforeEach((to, from, next) => {
    document.title = to.meta.title;
    next();
});

export default router
